package views.windows;

import java.awt.Color;

import javax.swing.JButton;

import javax.swing.JLabel;
import javax.swing.JTextField;

import net.miginfocom.swing.MigLayout;

public class StatisticsPanel extends javax.swing.JPanel
{
	private static final long serialVersionUID = 1L;
	private JTextField MaGanadorTextField;
	private JButton LimpiarButton;
	private JButton MostrarButton;
	private JLabel MaHrLabel;
	private JTextField MeImpulsadorTextField;
	private JLabel MeImpulsadorLabel;
	private JTextField MaImpulsadorTextField;
	private JLabel MaImpulsadorLabel;
	private JTextField MeHrTextField;
	private JLabel MeHrLabel;
	private JTextField MaHrTextField;
	private JTextField MeGanadorTextField;
	private JLabel MeGanadorLabel;
	private JLabel MaGanadorLabel;

	public StatisticsPanel()
	{
		super();
		initGUI();
	}

	private void initGUI()
	{
		this.setBackground(Color.WHITE);
		
		try
		{

			MigLayout thisLayout = new MigLayout();
			thisLayout.setColumnConstraints("33.0[110.0]10.0[172.0]6.0");
			thisLayout.setRowConstraints("27.0[39.0][37.0]");
			this.setLayout(thisLayout);

			this.setPreferredSize(new java.awt.Dimension(400, 334));
			{
				MaGanadorLabel = new JLabel();
				this.add(MaGanadorLabel, "cell 0 0");
				MaGanadorLabel.setText("Equipo mas ganador");
			}
			{
				MaGanadorTextField = new JTextField();
				this.add(MaGanadorTextField, "cell 1 0 2 1,growx");
			}
			{
				MeGanadorLabel = new JLabel();
				this.add(MeGanadorLabel, "cell 0 1");
				MeGanadorLabel.setText("Equipo menos ganador");
			}
			{
				MeGanadorTextField = new JTextField();
				this.add(MeGanadorTextField, "cell 1 1 2 1,growx");
			}
			{
				MaHrLabel = new JLabel();
				this.add(MaHrLabel, "cell 0 2");
				MaHrLabel.setText("Jugador mas honronero");
			}
			{
				MaHrTextField = new JTextField();
				this.add(MaHrTextField, "cell 1 2 2 1,growx");
			}
			{
				MeHrLabel = new JLabel();
				this.add(MeHrLabel, "cell 0 3");
				MeHrLabel.setText("Jugador menos honronero");
			}
			{
				MeHrTextField = new JTextField();
				this.add(MeHrTextField, "cell 1 3 2 1,growx");
			}
			{
				MaImpulsadorLabel = new JLabel();
				this.add(MaImpulsadorLabel, "cell 0 4");
				MaImpulsadorLabel.setText("Jugador mas impulsador");
			}
			{
				MaImpulsadorTextField = new JTextField();
				this.add(MaImpulsadorTextField, "cell 1 4 2 1,growx");
			}
			{
				MeImpulsadorLabel = new JLabel();
				this.add(MeImpulsadorLabel, "cell 0 5");
				MeImpulsadorLabel.setText("Jugador menos impulsador");
			}
			{
				MeImpulsadorTextField = new JTextField();
				this.add(MeImpulsadorTextField, "cell 1 5 2 1,growx");
			}
			{
				MostrarButton = new JButton();
				this.add(MostrarButton, "cell 1 6 2 1,growx");
				MostrarButton.setText("Mostrar");
			}
			{
				LimpiarButton = new JButton();
				this.add(LimpiarButton, "cell 1 6,growx");
				LimpiarButton.setText("Limpiar");
			}
		} catch (Exception e)
		{
			e.printStackTrace();
		}
	}

	public JTextField getMaGanadorTextField()
	{
		return MaGanadorTextField;
	}

	public JButton getLimpiarButton()
	{
		return LimpiarButton;
	}

	public JButton getMostrarButton()
	{
		return MostrarButton;
	}

	public JTextField getMeImpulsadorTextField()
	{
		return MeImpulsadorTextField;
	}

	public JTextField getMaImpulsadorTextField()
	{
		return MaImpulsadorTextField;
	}

	public JTextField getMeHrTextField()
	{
		return MeHrTextField;
	}

	public JTextField getMaHrTextField()
	{
		return MaHrTextField;
	}

	public JTextField getMeGanadorTextField()
	{
		return MeGanadorTextField;
	}
}
